package com.lesson1.single;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/8/27 8:50
 */
public class SingleResponse3
{
    public static void main(String[] args)
    {
        Vehicle2 v = new Vehicle2();
        v.runRoad("汽车");
        v.runAir("飞机");
        v.runWater("潜艇");
    }
}

class Vehicle2
{
    public void runRoad(String vehicle)
    {
        System.out.println(vehicle + " 在路上运行。。。");
    }

    public void runAir(String vehicle)
    {
        System.out.println(vehicle + " 在天上运行。。。");
    }

    public void runWater(String vehicle)
    {
        System.out.println(vehicle + " 在水里运行。。。");
    }
}